@charset "utf-8";
/**
 * Kalaisoo
 *
 * A lightweight no-framework framework written in PHP
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 */

html {
	overflow-y: scroll;
	height: 100%;
}

body {
	font-family: 'Helvetica Neue', 'Helvetiva', 'Arial', sans-serif;
	margin: 0;
	font-size: 133%;
	color: rgb(99, 99, 99);
	position: relative;
	height: 100%;
}

a, a:link, a:hover, a:active {
	color: #00a7ed;
	text-decoration: none;
}

a:hover, a:active {
	background-color: #00a7ed;
	color: white;
}

/**
 * icon taken from wikipedia
 */
a[href$=".pdf"],
a[href$=".doc"],
a[href$=".xls"],
a[href$=".csv"],
a[href$=".png"],
a[href$=".jpg"],
a[href$=".gif"],
a[href$=".ico"] {
    display: inline-block;
    padding-left: 48px;
    line-height: 48px;
	color: inherit;
    background: url(generic-icon-48.png) center left no-repeat;
	background-color: transparent;
}

a.preview {
	display: block;
}

div#container {
	position: relative;
	min-height: 100%;
	min-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding: 111px 64px 20em 64px;
}

* html div#container {
	height: 100%;
}

h1, h2, h3, h4, h5, h6 {
}

div,
article,
section,
aside,
header,
footer,
form,
nav,
table, tr, th, td, thead, tbody, tfoot
{
	/*border: 1px dashed gray;
	margin: 10px;*/
}

header.main {
	clear: both;
}

header.editor {
	clear: both;
}

header.editor hgroup.model,
hgroup.info h1 {
	display: none;
}

hgroup.info p {
	font-size: 0.5em;
	color: gray;
	padding: 0.5em;
	text-align: center;
}

.invisible {
	display: none;
}

.error, .warning {
	color: red;
}

div#toolbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999; /* higher than many iframe stuff */
	background-color: white;
	opacity: 0.95;
	padding-top: 8px;
	height: 100px;
	/* extremly nervous box shadow */
	-webkit-box-shadow: 0 24px 48px rgba(0, 0, 0, .44);
}

div#toolbox {
	padding: 8px;
}

div#toolbox.running {
	background: url(loader.gif) top center no-repeat;	
}

nav#urhere {
	position: absolute;
	left: 0;
	bottom: 0px;
	width: 100%;
	border-top: 1px solid gray;
	border-bottom: 1px solid gray;
}

div#avatar {
	/* width is not set here, but in app/views/shared/avatar so we can use PHP value */
	cursor: pointer;
}

/**
 * mask the avatar image with a circle
 */
div#avatar img {
	border: 0;
	-webkit-mask-image: url(circle.svg);
}

div#heartbeat {
	display: none;
	position: absolute;
	top: -0.33em;
	right: -0.7em;
	width: 1.5em;
	height: 1.5em;
	background-color: red;
	color: white;
	-webkit-border-radius: 1.5em;
	line-height: 1.5em;
	text-align: center;
	z-index: 1000;
}

div#gear {
	background: url(gear.png) center center no-repeat;
	cursor: pointer;
}

div#memo {
	background: url(widget-note.png) center center no-repeat;
	cursor: pointer;
}

div.tool.search {
	padding-top: 12px;
	float: right;
	width: 60%;
	height: 44px;
}

div.drawer {
	z-index: 1002;
	position: absolute;
	top: 61px;
	width: auto;
	padding: .5em 0 0.5em 0;
	background: white;
	-webkit-border-radius: 0 0 .5em .5em;
	/*-webkit-box-shadow: 0px 3px 2px 1px rgba(0, 0, 0, 0.3);*/
	-webkit-box-shadow: 0 18px 24px rgba(0, 0, 0, .66);
	border: 1px solid gray;
	border-top: none;
	max-height: 480px;
	overflow-y: auto;
}

div#search-drawer {
	width: 100%;
}

.tool {
	position: relative;
	float: left;
	min-width: 48px;
	height: 48px;
	margin-right: 16px;
}

.tool:last-child {
	margin-right: 0;
}

.tool h1 {
	display: none;
}

// slot for effects on avatar image
div#avatar img:hover {
}

div#avatar.open img {
	/*-webkit-transform: rotate(-23.3deg); /* didn't you find me yet? */
}

nav.tooloptions {
}

nav.tooloptions ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

nav.tooloptions li {
	display: block;
}

nav.tooloptions li.hr {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px solid silver;
}

nav.tooloptions li a {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	padding: 0 1em 0 1em;
}

nav.tooloptions li span.type {
	display: inline-block;
	visibility: hidden;
	width: 48%;
	padding-left: 1%;
	padding-right: 1%;
	text-align: right;
	color: gray;
}

nav.tooloptions li:first-child span.type {
	visibility: visible;
}

nav.tooloptions li:first-child a:hover span.type {
	color: white;
}

nav.tooloptions li span.item {
	width: 48%;
	padding-left: 1%;
	padding-right: 1%;
}

/* footer */
footer.main {
	position: relative;
	bottom: 0;
}

footer.main h1 {
	padding-top: 60px;
	height: 60px;
	background: url(logo.png) top center no-repeat;
	text-align: center;
}

footer.main h2 {
	font-size: 0.7em;
	text-align: center;
}

footer.main p.system {
	font-size: small;
	color: gray;
	text-align: center;
}

/* regarding forms */
form {
	margin-top: 1em;
	padding: 0 0 4em 0;
	clear: both;
}

form#search {
	margin-top: 0;
	padding: 0;
	text-align: center;
}

fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

legend {
	display: none;
}

form h1, p.help {
	margin: 0.33em 0 0.3em 0;
}

div.wrapper {
	position: relative;
	margin-bottom: 0.5em;
}

h2.handle {
	font-size: 1.2em;
	cursor: pointer;
	margin-bottom: 0;
}

h2.handle.closed {
	color: gray;
}

a.attach, a.associate {
	width: 31px;
	height: 31px;
}

a.unassociate, a.detach {
	width: 31px;
	height: 31px;
}

a.attach {
	background: url(plus.png) left center no-repeat;
	position: absolute;
	top: 0;
	left: 0;
}

a.associate {
	background: url(plus.png) left center no-repeat;
}

a.detach {
	background: url(minus.png) left center no-repeat;
	position: absolute;
	top: -0.28em;
	left: 0;
}

a.unassociate {
	background: url(minus.png) left center no-repeat;
}

a.associate, a.unassociate {
	color: inherit;
}

a.associate:hover, a.unassociate:hover {
	background-color: inherit;
	color: inherit;
}

a.attach span, a.detach span,
a.associate span, a.unassociate span {
	display: none;
}

div.item {
	position: relative;
}

label {
	font-size: 0.8em;
	font-weight: bold;
	cursor: pointer;
	display: block;
	color: gray;
	padding-bottom: 0.33em;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="time"],
input[type="datetime"], input[type="datetime-local"],
input[type="password"],
textarea {
	font-family: 'Helvetica Neue', 'Helvetiva', 'Arial', sans-serif;
	width: 99%;
	margin: 0;
	padding: 2px;
	border: 1px dotted silver;
	font-size: 1em;
	color: rgb(23, 23, 23);
}

select {
	font-size: 1em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus, input[type="datetime-local"]:focus,
input[type="password"]:focus,
textarea:focus
{
    background-color: #feffbc;
}

input[required="required"], textarea[required="required"]
{
	border: 1px solid gray;
}

div.row {
	padding-bottom: 0.5em;
}

div.row.hidden {
	margin: 0;
	padding: 0;
	border: none;
}

p.help {
	font-size: 0.7em;
	color: gray;
}

input#submit.default {
	/*margin-top: 1em;*/
	font-family: 'Helvetica Neue', 'Helvetiva', 'Arial', sans-serif;
	font-size: 1em;
	padding: 0.33em;
	width: auto;
	vertical-align: middle;
	background-color: #009ee0;
	color: white;
	border: 0.33em solid #009ee0;
	cursor: pointer;
	-webkit-transform: rotate(-0.7deg);
	-webkit-border-radius: 1em;
	-moz-border-radius: 1em;
	float: right;
	font-weight: bold;

	-webkit-animation-name: stillalive;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
}

a.button {
	padding: 0.33em 1em;
	font-size: 0.8em;
	border: 0.13em solid gray;
	background-color: white;
	color: gray;
	float: left;
	margin-top: .5em;
	-webkit-transform: rotate(0deg);
	-webkit-border-radius: 1em;
	-moz-border-radius: 1em;
}

@-webkit-keyframes stillalive {
from { opacity: 1; }
50% { opacity: .6; }
to { opacity: 1; }
}

.loadonscroll {
	display: block;
	background: url(loader.gif) center center no-repeat;
	height: 48px;
}

.loadonscroll:hover {
	background-color: inherit;
}

.loadonscroll span {
	display: none;
}

/* editor/create domain linkfarm */
a.domain, a.item {
	background: transparent url(generic-folder-48.png) center center no-repeat;
	display: inline-block;
	position: relative;
	margin-bottom: 2em;
	width: 120px;
	height: 102px;
	color: inherit;
	cursor: pointer;
}
a.item {
	background: transparent url(generic-document-48.png) center center no-repeat;
}

a.domain.user, a.item.user {
	background: transparent url(user.png) center center no-repeat;
}

a.domain:hover, a.item:hover {
}

a.domain span, a.item span {
	display: inline-block;
	font-size: 0.7em;
	/*font-weight: bold;*/
	position: absolute;
	top: 102px;
	left: 0;
	width: 100%;
	overflow: hidden;
	text-align: center;
	/*white-space: nowrap;*/
	background: transparent;
}

/* @see http://css-tricks.com/examples/TriangleBreadcrumbs/ */
.breadcrumb {
	list-style: none; 
	overflow: hidden; 
	font-size: 0.666em;
	font-weight: bold;
	margin: 0;
	padding: 0;
}
.breadcrumb li { 
	float: left; 
}
.breadcrumb li a {
	color: white;
	text-decoration: none; 
	padding: 6px 0 6px 66px;
	background: rgb(128, 128, 128);                   /* fallback color */
	position: relative; 
	display: block;
	float: left;
}
.breadcrumb li a:after { 
	content: " "; 
	display: block; 
	width: 0; 
	height: 0;
	border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
	border-bottom: 50px solid transparent;
	border-left: 50px solid rgb(128, 128, 128); /*hsla(34,85%,35%,1)*/
	position: absolute;
	top: 50%;
	margin-top: -50px; 
	left: 100%;
	z-index: 2; 
}	
.breadcrumb li a:before { 
	content: " "; 
	display: block; 
	width: 0; 
	height: 0;
	border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
	border-bottom: 50px solid transparent;
	border-left: 50px solid white;
	position: absolute;
	top: 50%;
	margin-top: -50px; 
	margin-left: 1px;
	left: 100%;
	z-index: 1; 
}	
.breadcrumb li:first-child a {
	padding-left: 10px;
}

.breadcrumb li:last-child a {
	background: white !important;
	color: inherit;
	/*pointer-events: none;*/
	cursor: default;
	max-width: 23.3em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.breadcrumb li:last-child a:after { border: 0; }
/*.breadcrumb li a:hover { background: rgb(45, 45, 45); }*/
/*.breadcrumb li a:hover:after { border-left-color: rgb(45, 45, 45) !important; }*/

/* actions menu, looks like a button bar with first and last rounded edges */
nav#actions {
	margin: 1.333em 0 1em 0;
	clear: both;
	float: left;
	width: 100%;
	overflow: hidden;
}

nav#actions ul {
	float: left;
	position: relative;
	left: 50%;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

nav#actions li {
	float: left;
	position: relative;
	right: 50%;
}

nav#actions a.action {
	display: block;
	background-color: silver;
	color: white;
	font-size: 0.66em;
	font-weight: bold;
	padding: 0.5em 1em;
}

nav#actions li:first-child a.action {
	-webkit-border-radius: 1em 0 0 1em;
	padding-left: 2em;
}

nav#actions li:last-child a.action {
	-webkit-border-radius: 0 1em 1em 0;	
	padding-right: 2em;
}

nav#actions li:only-child a.action {
	-webkit-border-radius: 1em;	
	padding-right: 2em;
	padding-left: 2em;
}
/*
nav#actions a.action:hover {
	background-color: rgb(45, 45, 45);
}
*/
nav#actions.view a.action.view,
nav#actions.add a.action.add,
nav#actions.edit a.action.edit,
nav#actions.delete a.action.delete {
	background-color: gray;
}

nav#actions.delete a.action.delete {
	background-color: red;
}

.draggingme {
	text-shadow: -1px -1px rgb(222, 222, 222), -1px -1px rgb(222, 222, 222);
}


/**
 * Experiment with form styling
 * This has to go into addressbook.css and so on
 */

/* email addresses lineup */
div.item.own.email label,
div.item.own.phone label,
div.item.own.url label {
	display: none;
}
div.item.own.email div.row.label {
	width: 20%;
	display: inline-block;
}
div.item.own.email div.row.value {
	width: 80%;
	display: inline-block;
}
/* phone */
div.item.own.phone div.row.label {
	width: 20%;
	display: inline-block;
}
div.item.own.phone div.row.value {
	width: 80%;
	display: inline-block;
}
/* url */
div.item.own.url div.row.label {
	width: 20%;
	display: inline-block;
}
div.item.own.url div.row.value {
	width: 80%;
	display: inline-block;
}

/**
 * blog
 */
article > section > div.auto {
	font-size: 0.66em;
}
div.auto a.label {
	padding: 0.33em 0.5em 0.33em 0.5em;
	background-color: #00a7ed;
	color: white;
	-webkit-border-radius: 0.5em 0 0 0.5em;
}

div.auto a.view, span.deleted {
	display: inline-block;
	padding: 0.33em 0.5em 0.33em 0.5em;
	background-color: gray;
	color: white;
	-webkit-border-radius: 0 0.5em 0.5em 0;
	max-width: 23.3em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

span.deleted {
	background-color: red;
	color: white;
}

/* special colors for certain domains */
div.auto a.label.project { background-color: orange; }